
import request from "../utlis/request";
export const login = (username,password,code) => 
  request('/user/login','post',{username,password,code})
export const register = (username,password,phone) => 
  request('/user/register','post',{username,password,phone})
export const getCode = () => 
  request('/user/code','get')
export const getUserList = (pagination) => 
  request('/user/queryUserInfoList','post', pagination)
export const openBug = () => 
request ('/SeismicInfo/openBug','get')
export const deleteById = (id) => 
request(`/user/deleteById?id=${id}`,'delete')
export const changePassword = (data) => 
  request('/user/changePassword','post',data)
export const uploadAvatar = (avatar) => 
  request('/user/uploadAvatar','post',{avatar}) 
export const changeUserInfo = (data) => 
  request('/user/changeUserInfo','post',data) 
